package com.wh.calculator;

public class Addition {
	
	private int sum;
	
	public void add(int num1, int num2, String fuhao) {
			
			sum = num1 + num2;
			System.out.println(num1+ "+" +num2+ "=" +sum);
		
	}
	
	public void de(int num1, int num2, String fuhao) {
		
		sum = num1 - num2;
		System.out.println(num1+ "-" +num2+ "=" +sum);
	
}
	
	public void cen(int num1, int num2, String fuhao) {
		
		sum = num1 * num2;
		System.out.println(num1+ "*" +num2+ "=" +sum);
	
}
	
	public void chu(double num1, double num2, String fuhao) {
		
		double sum = num1 / num2;
		System.out.println(num1+ "/" +num2+ "=" +sum);
	
}
}
